

echo grant codeBase "http://localhost/sistema/java/*" { > "%USERPROFILE%\.java.policy"
echo 	permission java.security.AllPermission; >> "%USERPROFILE%\.java.policy"
echo };>> "%USERPROFILE%\.java.policy"


echo grant codeBase "file:${{java.ext.dirs}}/*" {>> "%USERPROFILE%\.java.policy"
echo 	permission java.security.AllPermission;>> "%USERPROFILE%\.java.policy"
echo };>> "%USERPROFILE%\.java.policy"

echo grant { >> "%USERPROFILE%\.java.policy"

echo 	permission java.lang.RuntimePermission "stopThread";>> "%USERPROFILE%\.java.policy"

echo 	permission java.net.SocketPermission "localhost:1024-", "listen";>> "%USERPROFILE%\.java.policy"

echo 	permission java.util.PropertyPermission "java.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vendor", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vendor.url", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.class.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "os.name", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "os.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "os.arch", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "file.separator", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "path.separator", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "line.separator", "read";>> "%USERPROFILE%\.java.policy"

echo 	permission java.util.PropertyPermission "java.specification.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.specification.vendor", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.specification.name", "read";>> "%USERPROFILE%\.java.policy"
 
echo 	permission java.util.PropertyPermission "java.vm.specification.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vm.specification.vendor", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vm.specification.name", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vm.version", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vm.vendor", "read";>> "%USERPROFILE%\.java.policy"
echo 	permission java.util.PropertyPermission "java.vm.name", "read";>> "%USERPROFILE%\.java.policy"
echo };>> "%USERPROFILE%\.java.policy"

